<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Account
 * 
 * @property int $id
 * @property string|null $username
 * @property string|null $account
 * @property string|null $avatar
 * @property string|null $pass
 * @property int|null $level
 * @property string|null $login_token
 * @property int|null $token_time
 * @property int|null $state
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 *
 * @package App\Models
 */
class Account extends Model
{
	protected $table = 'account';

	protected $casts = [
		'level' => 'int',
		'token_time' => 'int',
		'state' => 'int'
	];

	protected $hidden = [
		'login_token'
	];

	protected $fillable = [
		'username',
		'account',
		'avatar',
		'pass',
		'level',
		'login_token',
		'token_time',
		'state'
	];
}
